<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="java.sql.*" %>
<%@ page import="Loglj.Ljmysql" %>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
   
  </head>
  
  <body>
<%
 Connection con=Ljmysql.getConnection();
 Statement stat=con.createStatement();
String sql="select * from df";
ResultSet rs=stat.executeQuery(sql);
while(rs.next()){
out.print("<script>");
out.print("<table>");
out.print("<tr>");
out.print("<td>"+rs.getString("user")+"</td>");
out.print("<td>"+rs.getString("pass1")+"</td>");
out.print("</tr>");
out.print("</table>");
out.print("</script>");
}

%>
  </body>
</html>